package com.trace.action;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class MessageAction {

	public void showMessage(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {

		String errorMessage = (String) request.getAttribute("errorMessage");

		request.setAttribute("errorMessage", errorMessage);
		request.getRequestDispatcher("/message.jsp").forward(request, response);
	}
}
